package Game.Players.Units;
import Game.Players.Units.*;
/**
 * Created by sech_92 on 17.12.2014.
 */
public class LightInfantry extends Unit {
    private int regeneration = 0;
    Weapons[] weapon = {null, null};


    private LightInfantry(String _name, int _health, int _regen, TLightInfantry type) {
        name = _name;
        health = _health;
        regeneration = _regen;
        level = 1;
        squadSize = 1;
        Weapons.makeWeaponz(type, weapon);
    }

    public static LightInfantry make(TLightInfantry type) {
        LightInfantry constr;
        switch (type) {
            case Cultist:
                constr = new LightInfantry("Cultist", 200, 1, type);
                break;
            case Scout_Sniper:
                constr = new LightInfantry("Scout sniper", 200, 1, type);
                break;
            case Guardsman:
                constr = new LightInfantry("Guardsman", 200, 1, type);
                break;
            case Guardian:
                constr = new LightInfantry("Guardian", 200, 1, type);
                break;
            case Slugga_boy:
                constr = new LightInfantry("Slugga boy", 200, 1, type);
                break;
            case Shoota_boy:
                constr = new LightInfantry("Shoota boy", 200, 1, type);
                break;
            case Scarabs:
                constr = new LightInfantry("Scarabs", 200, 1, type);
                break;
            case Ranger:
                constr = new LightInfantry("Rangers", 200, 1, type);
                break;
            case XV15:
                constr = new LightInfantry("XV 15", 200, 1, type);
                break;
            default:
                constr = new LightInfantry("", 0, 0, null);
                break;
        }
        return constr;
    }

    public int getRegeneration() {
        return regeneration;
    }
}
